package com.lineage.server.serverpackets;

import com.lineage.server.model.gametime.L1GameTimeClock;

public class S_GameTime extends ServerBasePacket {
  public S_GameTime(int time) {
    buildPacket(time);
  }
  
  public S_GameTime() {
    int time = L1GameTimeClock.getInstance().currentTime().getSeconds();
    buildPacket(time);
  }
  
  private void buildPacket(int time) {
    writeC(123);
    writeD(time);
  }
  
  public byte[] getContent() {
    return getBytes();
  }
}
